package com.neusoft.elmboot.mapper;

import com.neusoft.elmboot.po.Business;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.neusoft.elmboot.po.Merchant;

@Mapper
public interface MerchantMapper {
	
	@Select("select * from merchant where userId=#{userId}")
	public Merchant checkMerchantStatus(String userId);

	@Insert("INSERT INTO merchant (userId, businessId, businessName, businessAddress, isActive) VALUES (#{userId}, #{businessId}, #{businessName}, #{businessAddress}, #{isActive})")
	int insertMerchant(Merchant merchant);
}
